/*
 * Project Name spring-boot-tools
 * File Name VersionMappingAutoConfiguration
 * Package Name com.huxiaosu.tools.common.version
 * Create Time 2024/7/16
 * Create by name：liujie
 */
package com.huxiaosu.tools.common.version;

import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Description
 *
 * @author liujie
 * @date 2024/7/16 10:28
 */
@Configuration(proxyBeanMethods = false)
@ConditionalOnWebApplication
public class VersionMappingAutoConfiguration {
    @Bean
    public WebMvcRegistrations cloudWebMvcRegistrations() {
        return new VersionWebMvcRegistrations();
    }
}